package com.cskaoyan.catmall.model.bo;

import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * 创建日期: 2022-01-07-21-10
 * author : WQW
 * description: 用于接收修改品牌商信息时接收参数
 */
@NoArgsConstructor
@Data
public class BrandUpdateBo {
    private Integer id;
    @NotNull(message = "品牌商名称不能为空")
    @Length(max = 50,message = "品牌商名称最长不能超过50个字符")
    private String name;
    @Length(max = 100, message = "品牌商描述最长不能超过100个字符")
    private String desc;
    @NotNull(message = "品牌商图片信息不能为空")
    private String picUrl;
    @NotNull(message = "最低价不能为空")
    @Min(value = 0,message = "最低价不能为负数")
    private Double floorPrice;
    private String addTime;
    private String updateTime;
}
